package ThreadTest;



class  Mythread1 implements Runnable{
    private String name;

    public Mythread1(String name) {
        this.name = name;
    }

    @Override
    public void run() {

        for (int x=0;x<100;x++){
            System.out.println(this.name+"运行"+"卖票"+x);
        }

    }
}

public class ThreadDemo02 {
    public static void main(String[] args) {
        Mythread1 m1= new Mythread1("线程a");
       /* Mythread1 m2=new Mythread1("线程b");
        Mythread1 m3=new Mythread1("线程c");*/
        new Thread(m1).start();
        new Thread(m1).start();
        new Thread(m1).start();
       /* new Thread(m2).start();
        new Thread(m3).start();*/
    }


}
